package com.ocom.aiotweb.feignclient;


import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;


@FeignClient(value = "minio", contextId = "minioClientService")
public interface MinioClientService {

    @PostMapping(value = "/upload/file",consumes = MediaType.MULTIPART_FORM_DATA_VALUE )
    Result upload(@RequestPart("file")  MultipartFile file);
}

